import TButton from "@/components/Botton";
import useStore from "@/store";
// import { useState } from "react";
export default function Counts() {
  //   const [count, setCount] = useState(0);
  const count = useStore((state) => state.count);
  const addCount = useStore((state) => state.addCount);
  return (
    <>
      <h2>{count}</h2>
      <TButton onClick={addCount}>count+1</TButton>
    </>
  );
}
